import type { IPageContentConfig } from '@/global/types'

const operationLogContentConfig: IPageContentConfig = {
  pageName: 'operationLog',
  layout: {
    border: false,
    size: 'small',
    stripe: true
  },
  items: [
    {
      prop: 'logUrl',
      label: '请求地址',
      minWidth: '200',
      align: 'left',
      showOverflowTooltip: true
    },
    {
      type: 'custom',
      slotName: 'logMethod',
      label: '请求方式',
      minWidth: '100',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      type: 'custom',
      slotName: 'logStatus',
      label: '请求状态',
      minWidth: '120',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'logTime',
      label: '响应时间(秒)',
      minWidth: '110',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'logIp',
      label: '请求ip',
      minWidth: '150',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'createTime',
      label: '创建时间',
      minWidth: '170',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      prop: 'createdBy',
      label: '创建人',
      minWidth: '130',
      align: 'center',
      showOverflowTooltip: true
    },
    {
      type: 'operation',
      label: '操作',
      fixed: 'right',
      minWidth: '120',
      align: 'center',
      btns: [{ type: 'detail', label: '详情' }]
    }
  ]
}

export default operationLogContentConfig
